With the File License Store, you deploy your license key in a file that resides in the file system.
In order to register the file containing the license key: At the beginning of your code, before you call any OPC Data Client or OPC Wizard operations, obtain the static Instance Field from the LicensingManagement Class, and call the RegisterFile Method or RegisterFileWithExistenceCheck Method with appropriate arguments:
The third argument is the full (absolute) path and name to the license key file.
It is up to your code to determine the location (directory) and construct the path. In many cases, method like Assembly.GetExecutingAssembly Method can help you with that.
Your build and deployment procedures then need to make sure that the license key file is placed at the chosen location when your program runs.
The available registration methods differ as follows:
The license key registration call must be made before any OPC Data Client or OPC Wizard operation is performed, or before you attempt to retrieve the license info.
Note that the actual validity of the license is not checked at the time when the location is registered.